package com.gzsxy.esjy.service.product.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzsxy.esjy.service.product.entity.Attribute;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;



/**
 * <p>
 * 类型 Mapper 接口
 * </p>
 *
 * @author zxl
 * @since 2021-11-02
 */
@Repository
public interface AttributeMapper extends BaseMapper<Attribute> {

    /**
     * @description: 判断是否有相同的参数
     * @param attrName 参数名
     * @param catId 分类id
     * @return
     */
    Boolean existByAttributeName(@Param("attrName") String attrName,@Param("catId") String catId);
}
